CREATE TABLE [dbo].[tb_AlumnosDeExamen]
(
[idAlumnoExamen] [int] NOT NULL IDENTITY(1, 1),
[Examen] [int] NOT NULL,
[Cursada] [int] NOT NULL,
[Nota] [float] NULL,
[Resultado] [int] NOT NULL,
[ConfirmoAsistencia] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AlumnosDeExamen] ADD CONSTRAINT [PK_tb_AlumnosDeExamen] PRIMARY KEY NONCLUSTERED  ([idAlumnoExamen]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AlumnosDeExamen] WITH NOCHECK ADD CONSTRAINT [FK_tb_AlumnosDeExamen_tb_Cursadas] FOREIGN KEY ([Cursada]) REFERENCES [dbo].[tb_Cursadas] ([idCursada])
GO
ALTER TABLE [dbo].[tb_AlumnosDeExamen] ADD CONSTRAINT [FK_tb_AlumnosDeExamen_tb_Examenes] FOREIGN KEY ([Examen]) REFERENCES [dbo].[tb_Examenes] ([idExamen])
GO
ALTER TABLE [dbo].[tb_AlumnosDeExamen] ADD CONSTRAINT [FK_tb_AlumnosDeExamen_tb_ResultadosExamenes] FOREIGN KEY ([Resultado]) REFERENCES [dbo].[tb_ResultadosExamenes] ([idResultadoExamen])
GO
ALTER TABLE [dbo].[tb_AlumnosDeExamen] NOCHECK CONSTRAINT [FK_tb_AlumnosDeExamen_tb_Cursadas]
GO
